package com.fushi.demo.controller;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.fushi.demo.po.Share_resource;
import com.fushi.demo.service.Share_resourceService;



@RestController
@RequestMapping("/resourse")
public class Share_resourseController {
	
	@Autowired
	private Share_resourceService ss;
	
	//根据名字模糊查询
	@PostMapping("/selectByName")
	public List<Share_resource> selectByName(@RequestBody Share_resource sr){
		return ss.selectByName(sr.getResource_name());
	}
	

}
